<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../../dist/vue.js"></script>
  </head>
  <body>
    <div id="demo">
      <h1>初始化流程</h1>
      <p>{{foo}}</p>
    </div>
    <script>
      // render>template>el
      // 创建实例
      // 挂载：el=>template=>render=>dom
      const app = new Vue({
        el: "#demo",
        // template:'<div>template</div>'
        // template:'#app'
        // render(h) {return h("div", "render");},
        data: {
          foo: "foo",
        },
      });
      console.log(app.$options.render);
    </script>
  </body>
</html>
